package by.kenjmark.example;

import by.kenjmark.example.exception.XmlHanderException;
import by.kenjmark.example.log.Logger;

public class Runner {
	
	private static ApplicationSettings appSettings = null;

	public static void main(String argv[]) {
		ConfigParser parser = new ConfigParser();
		
		try {
			appSettings = parser.parse();
		} catch (XmlHanderException e) {
			Logger.log(e.getMessage());
		}
		
		if(appSettings != null) {
			//TODO 1. get XML Data
			//TODO 2. save XML Data
		} else {
			//show error message
			Logger.log("The configuration file is not well configured. Please, fix it.");
		}
		
	}
}
